﻿using LinFu.IoC.Interfaces;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Injects a new <see cref="IConnectionInfo"/> instance. 
    /// </summary>
    public interface IConnectionInfoInjector
    {
        /// <summary>
        /// Injects/creates a new <see cref="IConnectionInfo"/> instance into an <see cref="IServiceContainer"/> instance
        /// </summary>
        /// <param name="name">The name of the connection</param>
        /// <param name="providerName">The invariant name of the provider.</param>
        /// <param name="connectionString">The connection string that is used to access the database</param>
        void Inject(string name, string providerName, string connectionString);
    }
}
